// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_HR_ATTENDANCE_CARD_LOSS
// * CreateDate    : 2011/11/7 12:58:39
// * Creater       : CodeSmith
// * LastChangeDate: 2011/11/7 12:58:39
// * LastChanger   : 2011/11/7 12:58:39
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class HrAttendanceCardLossEntity : EntityBase
    {
        public HrAttendanceCardLossTable TableSchema
        {
            get
            {
                return HrAttendanceCardLossTable.Current;
            }
		}
		
		public HrAttendanceCardLossEntity()
        {

        }
		
		public HrAttendanceCardLossEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.LossId = Convert.ToString(CommonFunctions.ToObject(dr["LOSS_ID"]));
			this.DepartmentId = Convert.ToString(CommonFunctions.ToObject(dr["DEPARTMENT_ID"]));
			this.PersonId = Convert.ToString(CommonFunctions.ToObject(dr["PERSON_ID"]));
			this.CardLossDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CARD_LOSS_DATE"]));
			this.Reason = Convert.ToString(CommonFunctions.ToObject(dr["REASON"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.ApprovedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_BY"]));
			this.ApprovedRemark = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_REMARK"]));
        }
		
		public HrAttendanceCardLossEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.LossId = Convert.ToString(CommonFunctions.ToObject(dr["LOSS_ID"]));
			this.DepartmentId = Convert.ToString(CommonFunctions.ToObject(dr["DEPARTMENT_ID"]));
			this.PersonId = Convert.ToString(CommonFunctions.ToObject(dr["PERSON_ID"]));
			this.CardLossDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CARD_LOSS_DATE"]));
			this.Reason = Convert.ToString(CommonFunctions.ToObject(dr["REASON"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.ApprovedBy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_BY"]));
			this.ApprovedRemark = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HrAttendanceCardLossTable.Current;
            }
        }
		
		#region Perporty List
        public string LossId
        {
            get { return Convert.ToString(GetData(HrAttendanceCardLossTable.C_LOSS_ID)); }
            set { SetData(HrAttendanceCardLossTable.C_LOSS_ID, value); }
        }
		
        public string DepartmentId
        {
            get { return Convert.ToString(GetData(HrAttendanceCardLossTable.C_DEPARTMENT_ID)); }
            set { SetData(HrAttendanceCardLossTable.C_DEPARTMENT_ID, value); }
        }
		
        public string PersonId
        {
            get { return Convert.ToString(GetData(HrAttendanceCardLossTable.C_PERSON_ID)); }
            set { SetData(HrAttendanceCardLossTable.C_PERSON_ID, value); }
        }
		
        public DateTime CardLossDate
        {
            get { return Convert.ToDateTime(GetData(HrAttendanceCardLossTable.C_CARD_LOSS_DATE)); }
            set { SetData(HrAttendanceCardLossTable.C_CARD_LOSS_DATE, value); }
        }
		
        public string Reason
        {
            get { return Convert.ToString(GetData(HrAttendanceCardLossTable.C_REASON)); }
            set { SetData(HrAttendanceCardLossTable.C_REASON, value); }
        }
		
        public string Status
        {
            get { return Convert.ToString(GetData(HrAttendanceCardLossTable.C_STATUS)); }
            set { SetData(HrAttendanceCardLossTable.C_STATUS, value); }
        }
		
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(HrAttendanceCardLossTable.C_CREATED_DATE)); }
            set { SetData(HrAttendanceCardLossTable.C_CREATED_DATE, value); }
        }
		
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(HrAttendanceCardLossTable.C_CREATED_BY)); }
            set { SetData(HrAttendanceCardLossTable.C_CREATED_BY, value); }
        }
		
        public DateTime LastModifiedDate
        {
            get { return Convert.ToDateTime(GetData(HrAttendanceCardLossTable.C_LAST_MODIFIED_DATE)); }
            set { SetData(HrAttendanceCardLossTable.C_LAST_MODIFIED_DATE, value); }
        }
		
        public string LastModifiedBy
        {
            get { return Convert.ToString(GetData(HrAttendanceCardLossTable.C_LAST_MODIFIED_BY)); }
            set { SetData(HrAttendanceCardLossTable.C_LAST_MODIFIED_BY, value); }
        }
		
        public DateTime ApprovedDate
        {
            get { return Convert.ToDateTime(GetData(HrAttendanceCardLossTable.C_APPROVED_DATE)); }
            set { SetData(HrAttendanceCardLossTable.C_APPROVED_DATE, value); }
        }
		
        public string ApprovedBy
        {
            get { return Convert.ToString(GetData(HrAttendanceCardLossTable.C_APPROVED_BY)); }
            set { SetData(HrAttendanceCardLossTable.C_APPROVED_BY, value); }
        }
		
        public string ApprovedRemark
        {
            get { return Convert.ToString(GetData(HrAttendanceCardLossTable.C_APPROVED_REMARK)); }
            set { SetData(HrAttendanceCardLossTable.C_APPROVED_REMARK, value); }
        }
		
		#endregion
	}
	
	
}	

